<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    h1:before {
      content: "";
      display: block;
      width: 50px;
      height: 50px;
      background: red;
      box-shadow: 0 0 10px black;
      transform: rotate(45deg);
    }


    h1:after {
      content: "*";
    }
  </style>
</head>
<body>
<h1>This is the target</h1>
</body>
</html>
